export interface block {
  top: number;
  left: number;
  zIndex: number;
  key: string;
  alignCenter?: boolean;
  focus?: boolean;
  width?: number;
  height?: number;
  sort: number; //拖拽的顺序
  props: Record<string, any>;
  model: Record<string, any>;
  hasResize?: boolean;

}
export type containerType = { width: number; height: number };
export interface DataType {
  container: containerType;
  block: Array<block>;
}

const data: DataType = {
  container: {
    width: 550,
    height: 1750,
  },
  block: [
    // {
    //   top: 100,
    //   left: 100,
    //   zIndex: 1,
    //   key: "text",
    //   sort: 1,
    //   props: {
    //     text: "hello world",
    //     color: "#ff0000",
    //     size: "14px",
    //   },
    //   model:{}
    // },
    // {
    //   top: 200,
    //   left: 200,
    //   zIndex: 1,
    //   key:"button",
    //   sort: 1,
    //   props: {
    //     text: "按钮",
    //     type: "primary",
    //     size: "small",
    //   },
    //   model:{}
    // },
    { top: 300, left: 300, zIndex: 1, key: "input", sort: 1, props: {},model:{} },
  ],
};
export default data;
